/**
 * Created by isoft-work 5 on 1/4/2015.
 */
TEMPLATE.BillCommon = {
   billTable: '\
      <table id="BillTable" class="tablesorter tableBillWidth align-center hoverBillTable">\
         <thead>\
            <tr>\
               <th class="columnBillStick">Xoá</th>\
               <th class="columnBillCode">Mã HĐ</th>\
               <th class="columnBillBuyer">Người mua</th>\
               <th class="columnBillRecipient">Người nhận (NN)</th>\
               <th class="columnBillPhone">Số ĐT (NN)</th>\
               <th class="columnBillAddress">Địa chỉ (NN)</th>\
               <th class="columnBillDate">Ngày lập</th>\
               <th class="columnBillDate">Ngày giao</th>\
               <th class="columnBillDate">Ngày nhận</th>\
               <th class="columnBillFinish">Trạng thái<input id="BillCommon_StatusID" type="hidden"></th>\
               <th class="columnBillFinish">Thanh toán<input id="BillCommon_StatusID" type="hidden"></th>\
               <th class="columnBillNote">Ghi chú</th>\
               <th class="columnBillTotalCash">Tổng tiền (VND)</th>\
            </tr>\
         </thead>\
         <tbody>\
            {listBill}\
         </tbody>\
      </table>',

   billTableRow: '\
      <tr onmouseover="set_hover(this);" onmouseout="remove_hover(this)" id="showData_{{maHD}}" class="column-Light tableTransparent" style="color: white; background-color: gray;">\
         {{#if showTick}}\
            <td class="columnBillStick tableBillPadding"><input onclick="highlight_row(this)" id="HD1420277403320" type="checkbox" value="{{maHD}}"></td>\
         {{else}}\
            <td class="columnBillStick tableBillPadding"><input onclick="highlight_row(this)" id="HD1420277403320" type="checkbox" value="{{maHD}}" disabled></td>\
         {{/if}}\
         <td class="columnBillCode tableBillPadding">{{maHD}}</td>\
         <td class="columnBillBuyer tableBillPadding" id="uitquocthang@gmail.com">{{thongTinThanhVien.ho}} {{thongTinThanhVien.ten}}</td>\
         <td class="columnBillRecipient tableBillPadding">{{hoTenNN}}</td>\
         <td class="columnBillPhone tableBillPadding">{{soDTNN}}</td>\
         <td class="columnBillAddress tableBillPadding" title="Thủ Đức">{{diaChiNN}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayLapHD}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayGiao}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayNhan}}</td>\
         {{#if showStatus}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_status_{{maHD}}" value="{{trangThai}}"  data-id="{{maHD}}">\
                  {optionStatus}\
               </select>\
            </td>\
         {{else}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_status_{{maHD}}" value="{{trangThai}}"  data-id="{{maHD}}" disabled>\
                  {optionStatus}\
               </select>\
            </td>\
         {{/if}}\
         {{#if showPayment}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_payment_{{maHD}}" value="{{thanhToan}}" data-id="{{maHD}}">\
                  {optionPayment}\
               </select>\
            </td>\
         {{else}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_payment_{{maHD}}" value="{{thanhToan}}" data-id="{{maHD}}" disabled>\
                  {optionPayment}\
               </select>\
            </td>\
         {{/if}}\
         <td class="columnBillNote tableBillPadding" title="">{{ghiChu}}</td>\
         <td class="columnBillTotalCash tableBillPadding">{{tongTien}}</td>\
      </tr>\
      ',

   billUpdate: '\
         {{#if showTick}}\
            <td class="columnBillStick tableBillPadding"><input onclick="highlight_row(this)" id="HD1420277403320" type="checkbox" value="{{maHD}}"></td>\
         {{else}}\
            <td class="columnBillStick tableBillPadding"><input onclick="highlight_row(this)" id="HD1420277403320" type="checkbox" value="{{maHD}}" disabled></td>\
         {{/if}}\
         <td class="columnBillCode tableBillPadding">{{maHD}}</td>\
         <td class="columnBillBuyer tableBillPadding" id="uitquocthang@gmail.com">{{thongTinThanhVien.ho}} {{thongTinThanhVien.ten}}</td>\
         <td class="columnBillRecipient tableBillPadding">{{hoTenNN}}</td>\
         <td class="columnBillPhone tableBillPadding">{{soDTNN}}</td>\
         <td class="columnBillAddress tableBillPadding" title="Thủ Đức">{{diaChiNN}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayLapHD}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayGiao}}</td>\
         <td class="columnBillDate tableBillPadding">{{ngayNhan}}</td>\
         {{#if showStatus}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_status_{{maHD}}" value="{{trangThai}}"  data-id="{{maHD}}">\
                  {optionStatus}\
               </select>\
            </td>\
         {{else}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_status_{{maHD}}" value="{{trangThai}}"  data-id="{{maHD}}" disabled>\
                  {optionStatus}\
               </select>\
            </td>\
         {{/if}}\
         {{#if showPayment}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_payment_{{maHD}}" value="{{thanhToan}}" data-id="{{maHD}}">\
                  {optionPayment}\
               </select>\
            </td>\
         {{else}}\
            <td class="columnBillFinish tableBillPadding">\
               <select id="columnBill_payment_{{maHD}}" value="{{thanhToan}}" data-id="{{maHD}}" disabled>\
                  {optionPayment}\
               </select>\
            </td>\
         {{/if}}\
         <td class="columnBillNote tableBillPadding" title="">{{ghiChu}}</td>\
         <td class="columnBillTotalCash tableBillPadding">{{tongTien}}</td>\
      ',

   comboBoxStatus0: '\
      <option value="0" selected>Đang xử lý</option>\
      <option value="1">Đang giao hàng</option>\
      <option value="2">Hoàn thành</option>\
      <option value="3">Huỷ</option>\
      ',
   comboBoxStatus1: '\
      <option value="0">Đang xử lý</option>\
      <option value="1" selected>Đang giao hàng</option>\
      <option value="2">Hoàn thành</option>\
      <option value="3">Huỷ</option>\
      ',
   comboBoxStatus2: '\
      <option value="0">Đang xử lý</option>\
      <option value="1">Đang giao hàng</option>\
      <option value="2" selected>Hoàn thành</option>\
      <option value="3">Huỷ</option>\
      ',
   comboBoxStatus3: '\
      <option value="0">Đang xử lý</option>\
      <option value="1">Đang giao hàng</option>\
      <option value="2">Hoàn thành</option>\
      <option value="3" selected>Huỷ</option>\
      ',
   comboBoxPayment0: '\
      <option value="0" selected>Chưa thanh toán</option>\
      <option value="1">Đã thanh toán</option>\
      ',
   comboBoxPayment1: '\
      <option value="0">Chưa thanh toán</option>\
      <option value="1" selected>Đã thanh toán</option>\
      '
};
